package com.lms.common.pure.utils;

import java.util.regex.Pattern;

public class StringUtil {
    public static boolean isNumeric(String text) {
        Pattern pattern = Pattern.compile("[0-9]*");
        return pattern.matcher(text).matches();
    }
    public static boolean isEmpty(CharSequence cs) {
        return cs == null || cs.length() == 0;
    }

    public static boolean isNotEmpty(CharSequence cs) {
        return !isEmpty(cs);
    }
}
